<%@ taglib prefix="t" tagdir="/WEB-INF/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<t:wrapper>
	<jsp:attribute name="title">
		<spring:message code="course.new.title" />
	</jsp:attribute>
	<jsp:body>
		<div id="navigation">
			<a href="javascript:history.back()" >&laquo; <spring:message code="content.general.back" /></a>
		</div>
	<form method="post" action="">
		<label><spring:message code="course.manage.title" /></label>
		<input type="text" name="name" size="20" />
		
		<label><spring:message code="course.manage.description" /></label>
		<input type="text" name="description" size="20" />
		
		<label><spring:message code="course.manage.price" /></label>
		<input type="text" name="price" size="20" />
		
		<label></label>
		<label style="float: right;"><input type="checkbox" class="radio" name="disabled" ${course.isDisabled() ? "checked" : ""} /> <spring:message code="course.manage.disabled" /></label> 
		
		<label><spring:message code="course.manage.category" /></label>
		<select name="category">
			<c:forEach items="${category}" var="category">
				<option value="${category.id}">${category.name}</option>
			</c:forEach>		
		</select>
		
		<button type="submit" ><spring:message code="course.manage.submit" /></button>
	</form>
				
	</jsp:body>
</t:wrapper>